/*

*** This do file creates the replication results for 

Are Stricter Investment Rules Contagious? Host Country Competition for Foreign Direct Investment through International Agreements (with Peter Nunnenkamp and Martin Roy), Review of World Economics 152, 2016, pp. 177-213

Eric Neumayer (LSE)																			

Please report any errors to e.neumayer@lse.ac.uk

*/



***********************************************************************************
local DIR = "d:\Research\Development finance\Nunnenkamp\BIT\"  /*change relative path to the directory where the files are located */
cd "`DIR'"
***********************************************************************************



*** Appendix 1. List of source countries of FDI in sample and the number of treaties with hosts in 2002-04
use "Article for ROWE (BITs).dta", replace
preserve

keep if year==2002
quietly stset year, id(pairid) failure(bit_dummy) enter(time indep_host) origin(time year==1959)
quietly reg bit_dummy  SL_bit_dummy_w_fdishares SLS_bit_dummy_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2 rta2  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host   if dyad_relevant==1, 
keep if e(sample)
collapse (sum) bit_dummy bit_dummy_weak_isds bit_dummy_strong_isds bit_rta_dummy_weak_isds_nt bit_rta_dummy_strong_isds_nt, by(rep)
list rep bit_dummy bit_dummy_weak_isds bit_dummy_strong_isds bit_rta_dummy_weak_isds_nt bit_rta_dummy_strong_isds_nt

restore

*** Appendix 2. List of host countries in sample
use "Article for ROWE (BITs).dta", replace
preserve

keep if year==2002
quietly stset year, id(pairid) failure(bit_dummy) enter(time indep_host) origin(time year==1959)
quietly reg bit_dummy  SL_bit_dummy_w_fdishares SLS_bit_dummy_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2 rta2  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host   if dyad_relevant==1, 
keep if e(sample)
collapse year, by(host)
drop year
list host

restore


*** Appendix 3. summary descriptive variable table
use "Article for ROWE (BITs).dta", replace

* stset for simple BIT_dummy
stset year, id(pairid) failure(bit_dummy) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bit_dummy_w_fdishares   fdi_in_stock_share_rep_in_host_f dtt2 rta2  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance bit_sum_host bit_sum_rep  if dyad_relevant==1, vce(cluster pairid) efron nohr
su bit_dummy SL_bit_dummy_w_fdishares SLS_bit_dummy_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2 rta2  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance  bit_sum_rep bit_sum_host if e(sample)
corr bit_dummy SL_bit_dummy_w_fdishares SLS_bit_dummy_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2 rta2  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance  bit_sum_rep bit_sum_host if e(sample)
* stset for BIT_dummy with ISDS
stset year, id(pairid) failure(bit_dummy_isds) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bit_d_isds_w_fdishares   fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
su bit_dummy_isds SL_bit_d_isds_w_fdishares SLS_bit_d_isds_w_fdi rta_no_isds rta_with_isds  if e(sample)
corr bit_dummy_isds SL_bit_d_isds_w_fdishares SLS_bit_d_isds_w_fdi rta_no_isds rta_with_isds  if e(sample)
* stset for BIT_dummy with ISDS/NT
stset year, id(pairid) failure(bit_dummy_isds_nt) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bit_d_isdsnt_w_fdishares   fdi_in_stock_share_rep_in_host_f dtt2  rta_no_isds_nt rta_with_isds_nt  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
su  bit_dummy_isds_nt SL_bit_d_isdsnt_w_fdishares SLS_bit_d_isdsnt_w_fdi  rta_no_isds_nt rta_with_isds_nt  if e(sample)
corr  bit_dummy_isds_nt SL_bit_d_isdsnt_w_fdishares SLS_bit_d_isdsnt_w_fdi  rta_no_isds_nt rta_with_isds_nt  if e(sample)
* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bitrta_d_isdsnt_w_fdishares   fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
su bit_rta_dummy_isds_nt SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi   bitrta_sum_rep bitrta_sum_host  if e(sample)
corr bit_rta_dummy_isds_nt SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi   bitrta_sum_rep bitrta_sum_host  if e(sample)


* stset for BIT_dummy with weak ISDS
stset year, id(pairid) failure(bit_dummy_weak_isds) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bit_d_w_isds_w_fdishares  SL_bit_d_s_isds_w_fdishares   fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_weak_isds rta_with_strong_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
su bit_dummy_weak_isds SL_bit_d_w_isds_w_fdishares SLS_bit_d_w_isds_w_fdi rta_with_weak_isds  if e(sample)
corr bit_dummy_weak_isds SL_bit_d_w_isds_w_fdishares SLS_bit_d_w_isds_w_fdi rta_with_weak_isds  if e(sample)
* stset for BIT_dummy with strong ISDS
stset year, id(pairid) failure(bit_dummy_strong_isds) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bit_d_w_isds_w_fdishares  SL_bit_d_s_isds_w_fdishares   fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_weak_isds rta_with_strong_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
su  bit_dummy_strong_isds   SL_bit_d_s_isds_w_fdishares SLS_bit_d_s_isds_w_fdi rta_with_strong_isds if e(sample)
corr bit_dummy_strong_isds   SL_bit_d_s_isds_w_fdishares SLS_bit_d_s_isds_w_fdi rta_with_strong_isds if e(sample)


* stset for BIT/RTA_dummy with weak ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_weak_isds_nt) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares   fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host   if dyad_relevant==1, vce(cluster pairid) efron nohr
su bit_rta_dummy_weak_isds_nt SL_bitrta_d_w_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi if e(sample)
corr bit_rta_dummy_weak_isds_nt SL_bitrta_d_w_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi if e(sample)
* stset for BIT/RTA_dummy with strong ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_strong_isds_nt) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares   fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host   if dyad_relevant==1, vce(cluster pairid) efron nohr
su  bit_rta_dummy_strong_isds_nt SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_s_isdsnt_w_fdi  if e(sample)
corr  bit_rta_dummy_strong_isds_nt SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_s_isdsnt_w_fdi  if e(sample)




** Table 1
use "Article for ROWE (BITs).dta", replace
* stset for simple BIT_dummy
stset year, id(pairid) failure(bit_dummy) enter(time indep_host) origin(time year==1959)

stcox  SL_bit_dummy_w_fdishares SLS_bit_dummy_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2 rta2  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host   if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table1, replace  excel  
preserve
quietly su SL_bit_dummy_w_fdishares if e(sample)
quietly replace SL_bit_dummy_w_fdishares=SL_bit_dummy_w_fdishares/r(sd)
stcox  SL_bit_dummy_w_fdishares SLS_bit_dummy_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2 rta2  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host   if dyad_relevant==1, vce(cluster pairid) efron
di "Substantive effect one s.d. change in SL_bit_dummy_w_fdishares: " exp(_b[SL_bit_dummy_w_fdishares])
restore


* stset for BIT_dummy with ISDS
stset year, id(pairid) failure(bit_dummy_isds) enter(time indep_host) origin(time year==1959)

stcox  SL_bit_d_isds_w_fdishares SLS_bit_d_isds_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table1, append  excel  
preserve
quietly su SL_bit_d_isds_w_fdishares if e(sample)
quietly replace SL_bit_d_isds_w_fdishares=SL_bit_d_isds_w_fdishares/r(sd)
quietly su fdi_in_stock_share_rep_in_host_f if e(sample)
quietly replace fdi_in_stock_share_rep_in_host_f=fdi_in_stock_share_rep_in_host_f/r(sd)
stcox  SL_bit_d_isds_w_fdishares SLS_bit_d_isds_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron 
di "Substantive effect one s.d. change in SL_bit_d_isds_w_fdishares: " exp(_b[SL_bit_d_isds_w_fdishares])
di "Substantive effect one s.d. change in fdi_in_stock_share_rep_in_host_f: " exp(_b[fdi_in_stock_share_rep_in_host_f])
restore


* stset for BIT_dummy with ISDS/NT
stset year, id(pairid) failure(bit_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bit_d_isdsnt_w_fdishares SLS_bit_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2  rta_no_isds_nt rta_with_isds_nt  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table1, append  excel  
preserve
quietly su SL_bit_d_isdsnt_w_fdishares if e(sample)
quietly replace SL_bit_d_isdsnt_w_fdishares=SL_bit_d_isdsnt_w_fdishares/r(sd)
quietly su fdi_in_stock_share_rep_in_host_f if e(sample)
quietly replace fdi_in_stock_share_rep_in_host_f=fdi_in_stock_share_rep_in_host_f/r(sd)
stcox  SL_bit_d_isdsnt_w_fdishares SLS_bit_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2  rta_no_isds_nt rta_with_isds_nt  polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron 
di "Substantive effect one s.d. change in SL_bit_d_isdsnt_w_fdishares: " exp(_b[SL_bit_d_isdsnt_w_fdishares])
di "Substantive effect one s.d. change in fdi_in_stock_share_rep_in_host_f: " exp(_b[fdi_in_stock_share_rep_in_host_f])
restore


* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table1, append  excel  
preserve
quietly su SL_bitrta_d_isdsnt_w_fdishares if e(sample)
quietly replace SL_bitrta_d_isdsnt_w_fdishares=SL_bitrta_d_isdsnt_w_fdishares/r(sd)
quietly su fdi_in_stock_share_rep_in_host_f if e(sample)
quietly replace fdi_in_stock_share_rep_in_host_f=fdi_in_stock_share_rep_in_host_f/r(sd)
stcox  SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host  if dyad_relevant==1, vce(cluster pairid) efron 
di "Substantive effect one s.d. change in SL_bitrta_d_isdsnt_w_fdishares: " exp(_b[SL_bitrta_d_isdsnt_w_fdishares])
di "Substantive effect one s.d. change in fdi_in_stock_share_rep_in_host_f: " exp(_b[fdi_in_stock_share_rep_in_host_f])
restore



** Table 2

* stset for BIT_dummy with ISDS
stset year, id(pairid) failure(bit_dummy_isds) enter(time indep_host) origin(time year==1959)

stcox  SL_bit_d_isds_w_fdishares SLS_bit_d_isds_w_fdi fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table2, replace  excel  


* stset for BIT_dummy with weak ISDS
stset year, id(pairid) failure(bit_dummy_weak_isds) enter(time indep_host) origin(time year==1959)

stcox  SL_bit_d_w_isds_w_fdishares  SL_bit_d_s_isds_w_fdishares  SLS_bit_d_w_isds_w_fdi  SLS_bit_d_s_isds_w_fdi   fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_weak_isds rta_with_strong_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table2, append  excel  
preserve
quietly su SL_bit_d_w_isds_w_fdishares if e(sample)
quietly replace SL_bit_d_w_isds_w_fdishares=SL_bit_d_w_isds_w_fdishares/r(sd)
quietly su SLS_bit_d_w_isds_w_fdi if e(sample)
quietly replace SLS_bit_d_w_isds_w_fdi=SLS_bit_d_w_isds_w_fdi/r(sd)
stcox  SL_bit_d_w_isds_w_fdishares  SL_bit_d_s_isds_w_fdishares  SLS_bit_d_w_isds_w_fdi  SLS_bit_d_s_isds_w_fdi   fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_weak_isds rta_with_strong_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron 
di "Substantive effect one s.d. change in SL_bit_d_w_isds_w_fdishares: " exp(_b[SL_bit_d_w_isds_w_fdishares])
di "Substantive effect one s.d. change in SLS_bit_d_w_isds_w_fdi: " exp(_b[SLS_bit_d_w_isds_w_fdi])
restore

* stset for BIT_dummy with strong ISDS
stset year, id(pairid) failure(bit_dummy_strong_isds) enter(time indep_host) origin(time year==1959)


stcox  SL_bit_d_w_isds_w_fdishares  SL_bit_d_s_isds_w_fdishares SLS_bit_d_w_isds_w_fdi  SLS_bit_d_s_isds_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_weak_isds rta_with_strong_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table2, append  excel  


** Table 3
* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table3, replace  excel  


* stset for BIT/RTA_dummy with weak ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_weak_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi   fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table3, append  excel  
preserve
quietly su SL_bitrta_d_w_isdsnt_w_fdishares if e(sample)
quietly replace SL_bitrta_d_w_isdsnt_w_fdishares=SL_bitrta_d_w_isdsnt_w_fdishares/r(sd)
quietly su SLS_bitrta_d_w_isdsnt_w_fdi if e(sample)
quietly replace SLS_bitrta_d_w_isdsnt_w_fdi=SLS_bitrta_d_w_isdsnt_w_fdi/r(sd)
quietly su SLS_bitrta_d_s_isdsnt_w_fdi if e(sample)
quietly replace SLS_bitrta_d_s_isdsnt_w_fdi=SLS_bitrta_d_s_isdsnt_w_fdi/r(sd)
stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron 
di "Substantive effect one s.d. change in SL_bitrta_d_w_isdsnt_w_fdishares: " exp(_b[SL_bitrta_d_w_isdsnt_w_fdishares])
di "Substantive effect one s.d. change in SLS_bitrta_d_w_isdsnt_w_fdi: " exp(_b[SLS_bitrta_d_w_isdsnt_w_fdi])
di "Substantive effect one s.d. change in SLS_bitrta_d_s_isdsnt_w_fdi: " exp(_b[SLS_bitrta_d_s_isdsnt_w_fdi])
restore


* stset for BIT/RTA_dummy with strong ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_strong_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table3, append  excel  
preserve
quietly su SL_bitrta_d_w_isdsnt_w_fdishares if e(sample)
quietly replace SL_bitrta_d_w_isdsnt_w_fdishares=SL_bitrta_d_w_isdsnt_w_fdishares/r(sd)
quietly su SL_bitrta_d_s_isdsnt_w_fdishares if e(sample)
quietly replace SL_bitrta_d_s_isdsnt_w_fdishares=SL_bitrta_d_s_isdsnt_w_fdishares/r(sd)
stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron 
di "Substantive effect one s.d. change in SL_bitrta_d_w_isdsnt_w_fdishares: " exp(_b[SL_bitrta_d_w_isdsnt_w_fdishares])
di "Substantive effect one s.d. change in SL_bitrta_d_s_isdsnt_w_fdishares: " exp(_b[SL_bitrta_d_s_isdsnt_w_fdishares])
restore





 
***  Robustness test (table 4): Table 3, but large versus small FDI source country jackknives

capture dropvars rep_FDI_large rep_FDI_small
gen rep_FDI_large=0
replace rep_FDI_large=1 if rep=="United States" | rep=="United Kingdom" | rep=="Germany" | rep=="France" | rep=="Japan" | rep=="Netherlands"  | rep=="Netherlands"  
gen rep_FDI_small=1-rep_FDI_large

* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

quietly stcox  SL_bitrta_d_isdsnt_w_fdishares 
outreg2 using table4a, replace  excel  

foreach region in  rep_FDI_large rep_FDI_small {
stcox  SL_bitrta_d_isdsnt_w_fdishares  SLS_bitrta_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host   if dyad_relevant==1 & `region'==0, vce(cluster pairid) efron nohr
outreg2 using table4a, excel   append
}

* stset for BIT/RTA_dummy with weak ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_weak_isds_nt) enter(time indep_host) origin(time year==1959)

quietly stcox  SL_bitrta_d_isdsnt_w_fdishares
outreg2 using table4b, replace  excel  

foreach region in   rep_FDI_large rep_FDI_small {
stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares  SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host   if dyad_relevant==1  & `region'==0, vce(cluster pairid) efron nohr
outreg2 using table4b, excel   append
}

* stset for BIT/RTA_dummy with strong ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_strong_isds_nt) enter(time indep_host) origin(time year==1959)

quietly stcox  SL_bitrta_d_isdsnt_w_fdishares
outreg2 using table4c, replace  excel  

foreach region in   rep_FDI_large rep_FDI_small {
stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi     fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host   if dyad_relevant==1  & `region'==0, vce(cluster pairid) efron nohr
outreg2 using table4c, excel   append
}





***  Robustness test (table 5): Table 3, but counting FDI source developing countries as sources rather than hosts
use "Article for ROWE (BITs) incl developing FDI source countries.dta", replace


* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table5, replace  excel  


* stset for BIT/RTA_dummy with weak ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_weak_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi   fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table5, append  excel  


* stset for BIT/RTA_dummy with strong ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_strong_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table5, append  excel  




***  Robustness test (table 6): Table 3, but Only include countries independent at start of sample period

use "Article for ROWE (BITs) independent at sample start only.dta", replace

* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1 & indep_host<=1978, vce(cluster pairid) efron nohr

outreg2 using table6, replace  excel  


* stset for BIT/RTA_dummy with weak ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_weak_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi   fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1  & indep_host<=1978, vce(cluster pairid) efron nohr
outreg2 using table6, append  excel  


* stset for BIT/RTA_dummy with strong ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_strong_isds_nt) enter(time indep_host) origin(time year==1959)
stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1 & indep_host<=1978, vce(cluster pairid) efron nohr
outreg2 using table6, append  excel  



***  Robustness test (table 7): Table 3, but  trade-weighted spatial lags (on their own)

use "estimation data_03 with exp and imp-weighted SLs.dta", replace

* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

quietly stcox  SL_bitrta_d_isdsnt_w_tradesh SLS_bit_d_isdsnt_w_trd fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr

quietly su SL_bitrta_d_isdsnt_w_tradesh if e(sample)
quietly replace SL_bitrta_d_isdsnt_w_tradesh=SL_bitrta_d_isdsnt_w_tradesh/r(max) 
quietly su SLS_bit_d_isdsnt_w_trd if e(sample)
quietly replace SLS_bit_d_isdsnt_w_trd=SLS_bit_d_isdsnt_w_trd/r(max) 

stcox  SL_bitrta_d_isdsnt_w_tradesh SLS_bit_d_isdsnt_w_trd fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table7, replace  excel  


* stset for BIT/RTA_dummy with weak ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_weak_isds_nt) enter(time indep_host) origin(time year==1959)

quietly stcox  SL_bitrta_d_w_isdsnt_w_tradesh SL_bitrta_d_s_isdsnt_w_tradesh SLS_bitrta_d_w_isdsnt_w_trd SLS_bitrta_d_s_isdsnt_w_trd  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr

quietly su SL_bitrta_d_w_isdsnt_w_tradesh if e(sample)
quietly replace SL_bitrta_d_w_isdsnt_w_tradesh=SL_bitrta_d_w_isdsnt_w_tradesh/r(max) 
quietly su SL_bitrta_d_s_isdsnt_w_tradesh if e(sample)
quietly replace SL_bitrta_d_s_isdsnt_w_tradesh=SL_bitrta_d_s_isdsnt_w_tradesh/r(max) 

quietly su SLS_bitrta_d_w_isdsnt_w_trd if e(sample)
quietly replace SLS_bitrta_d_w_isdsnt_w_trd=SLS_bitrta_d_w_isdsnt_w_trd/r(max) 
quietly su SLS_bitrta_d_s_isdsnt_w_trd if e(sample)
quietly replace SLS_bitrta_d_s_isdsnt_w_trd=SLS_bitrta_d_s_isdsnt_w_trd/r(max) 

stcox  SL_bitrta_d_w_isdsnt_w_tradesh SL_bitrta_d_s_isdsnt_w_tradesh SLS_bitrta_d_w_isdsnt_w_trd SLS_bitrta_d_s_isdsnt_w_trd  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table7, append  excel  


* stset for BIT/RTA_dummy with strong ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_strong_isds_nt) enter(time indep_host) origin(time year==1959)

stcox   SL_bitrta_d_w_isdsnt_w_tradesh SL_bitrta_d_s_isdsnt_w_tradesh SLS_bitrta_d_w_isdsnt_w_trd SLS_bitrta_d_s_isdsnt_w_trd  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
outreg2 using table7, append  excel  




***  Robustness test (table 8): Table 3, but  Subtract from FDI stocks their value 10 years prior (set to zero if negative). Sample covers 1987 onwards only

use "Article for ROWE (BITs) FDI stocks last ten years only.dta", replace

* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1 & indep_host<=1978, vce(cluster pairid) efron nohr

quietly su SL_bitrta_d_isdsnt_w_fdishares if e(sample)
quietly replace SL_bitrta_d_isdsnt_w_fdishares=SL_bitrta_d_isdsnt_w_fdishares/r(max) 
quietly su SLS_bitrta_d_isdsnt_w_fdi if e(sample)
quietly replace SLS_bitrta_d_isdsnt_w_fdi=SLS_bitrta_d_isdsnt_w_fdi/r(max) 

outreg2 using table8, replace  excel  


* stset for BIT/RTA_dummy with weak ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_weak_isds_nt) enter(time indep_host) origin(time year==1959)

stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi   fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1  & indep_host<=1978, vce(cluster pairid) efron nohr

quietly su SL_bitrta_d_isdsnt_w_fdishares if e(sample)
quietly replace SL_bitrta_d_isdsnt_w_fdishares=SL_bitrta_d_isdsnt_w_fdishares/r(max) 
quietly su SLS_bitrta_d_isdsnt_w_fdi if e(sample)
quietly replace SLS_bitrta_d_isdsnt_w_fdi=SLS_bitrta_d_isdsnt_w_fdi/r(max) 

outreg2 using table8, append  excel  


* stset for BIT/RTA_dummy with strong ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_strong_isds_nt) enter(time indep_host) origin(time year==1959)
stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1 & indep_host<=1978, vce(cluster pairid) efron nohr

quietly su SL_bitrta_d_isdsnt_w_fdishares if e(sample)
quietly replace SL_bitrta_d_isdsnt_w_fdishares=SL_bitrta_d_isdsnt_w_fdishares/r(max) 
quietly su SLS_bitrta_d_isdsnt_w_fdi if e(sample)
quietly replace SLS_bitrta_d_isdsnt_w_fdi=SLS_bitrta_d_isdsnt_w_fdi/r(max) 


outreg2 using table8, append  excel  



***  Robustness test (table 9): Table 3, but  Linear probability model, dyad and year FE, three-way clustering

use "Article for ROWE (BITs).dta", replace

* stset for BIT/RTA_dummy with ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_isds_nt) enter(time indep_host) origin(time year==1959)

quietly stcox  SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi  fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
cgmreg bit_rta_dummy_isds_nt SL_bitrta_d_isdsnt_w_fdishares SLS_bitrta_d_isdsnt_w_fdi fdi_in_stock_share_rep_in_host_f fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host  i.pairid  i.year if e(sample),  cluster(pairid repid hostid)
outreg2 using table9, replace  excel  

* stset for BIT/RTA_dummy with weak ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_weak_isds_nt) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi   fdi_in_stock_share_rep_in_host_f dtt2    polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host    if dyad_relevant==1, vce(cluster pairid) efron nohr
cgmreg bit_rta_dummy_weak_isds_nt SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi   fdi_in_stock_share_rep_in_host_f   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host  i.pairid i.year if e(sample), cluster(pairid repid hostid)
outreg2 using table9, append  excel  


* stset for BIT/RTA_dummy with strong ISDS/NT
stset year, id(pairid) failure(bit_rta_dummy_strong_isds_nt) enter(time indep_host) origin(time year==1959)
quietly stcox  SL_bit_d_w_isds_w_fdishares  SL_bit_d_s_isds_w_fdishares SLS_bit_d_w_isds_w_fdi  SLS_bit_d_s_isds_w_fdi    fdi_in_stock_share_rep_in_host_f dtt2 rta_no_isds rta_with_weak_isds rta_with_strong_isds   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bit_sum_rep##c.bit_sum_rep c.bit_sum_host##c.bit_sum_host  if dyad_relevant==1, vce(cluster pairid) efron nohr
cgmreg bit_rta_dummy_strong_isds_nt  SL_bitrta_d_w_isdsnt_w_fdishares  SL_bitrta_d_s_isdsnt_w_fdishares    SLS_bitrta_d_w_isdsnt_w_fdi  SLS_bitrta_d_s_isdsnt_w_fdi fdi_in_stock_share_rep_in_host_f dtt2   polright  dipl_repr col45 comlang_ethno    diff_ln_GDPconst_rep_host ln_GDPpcconst_rep ln_GDPpcconst_host    logdistance c.bitrta_sum_rep##c.bitrta_sum_rep c.bitrta_sum_host##c.bitrta_sum_host   i.pairid i.year if e(sample),   cluster(pairid repid hostid)
outreg2 using table9, append  excel  
